<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath %>" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>郎坤物联网物流管理系统-订单跟踪</title>
<meta name="kewywords" content="郎坤物联网物流管理系统"/>
<meta name="description" content="郎坤物联网物流管理系统"/>
<link href="css/style.css" type="text/css" rel="stylesheet"/>
<script language="javascript" type="text/javascript" src="js/js.js"></script>
<script type="text/javascript" src="js/jquery-1.9.1.js"></script>
<script type="text/javascript" src="js/LocalList.js"></script>	
		<script type="text/javascript">
		function editCheck(){
			var selected_value = [];    
			$("input[name='ids']:checked").each(function(){    
			 	selected_value.push($(this).val());    
			});    
			if(selected_value.length == 0) {
				alert("你还没有选择任何内容"); 
				return false;
			} else if(selected_value.length > 1){
				alert("一次只能修改一条记录！"); 
				return false;
			}
			var id = selected_value[0];
			//document.getElementById("editDriverId").value=id;
			//alert($("#editDriverId").val());
			$("#editDriverId").val(id);
			//alert($("#editDriverId").val(id));
			$("#editDriver").submit();
		}
		function deleteCheck(){
			var selected_value = [];    
			$("input[name='ids']:checked").each(function(){    
			 	selected_value.push($(this).val());    
			});    
			if(selected_value.length == 0) {
				alert("你还没有选择任何内容"); 
				return false;
			} 
			var id = selected_value;
			//$("#selectId").val(id);
			document.getElementById("deleteDriverIds").value=id;
			//alert($("#selectId").val());				
			$("#deleteDriver").submit();
		}
		
		</script>
</head>
<body>
<%@include file="top.jsp" %>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="187" height="37" bgcolor="#e0e0e0" class="brt bbt"><div class="topleft fl">系统菜单栏</div></td>
    <td bgcolor="#e7e7e7" class=" bbt"><div class="topleft fl">您现在的位置：<a href="#">首页</a>&nbsp;>&nbsp;<span>订单跟踪</span></div></td>
  </tr>
  <tr>
    <td width="187" height="100%" valign="top" bgcolor="#FFFFFF" class="brt"><div class="left_bk"> 
         <ul>
           <div class="menu2">
         <%@include file="transport_left.jsp" %>
        
        </div></td>
    <td align="left" valign="top" bgcolor="#FFFFFF"><div class="content">
      <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td height="38" style="background:url(images/zz_tit.jpg) left top repeat-x;"><div class="tt_back fl">订单跟踪</div><div class="fr"><img src="images/tit_right.jpg" alt="" width="103" height="38" /></div></td>
        </tr>
        <tr>
          <td class="borders btn">
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
  
  <tr>
    <td height="237" align="center" valign="top"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr align="left">
        <td height="10"></td>
      </tr>
      <tr>
        <td><table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="#e3e3e3">
          <tr class="captitle">
            <td height="31" colspan="10"  valign="middle" style="padding-left: 20px;font-weight: bold;">
                 	 运输车辆
            </td>
            </tr>
          <tr height="26" bgcolor="#efefef">
            <td width="10%" height="26" align="center" valign="middle" bgcolor="#FFFFFF">车辆编号</td>
            <td width="10%" height="26" align="center" valign="middle" bgcolor="#FFFFFF">车牌号码</td>
            <td width="10%" height="26" align="center" valign="middle" bgcolor="#FFFFFF">车辆类型</td>
            <td width="10%" height="26" align="center" valign="middle" bgcolor="#FFFFFF">道路运输证</td>
            <td width="10%" height="26" align="center" valign="middle" bgcolor="#FFFFFF">车辆吨位</td>
            <td width="50%" height="26" align="center" valign="middle" bgcolor="#FFFFFF">运输路线</td>
          </tr>
          <s:iterator value="sches" var="obj">
          <tr height="26" bgcolor="#efefef">
            <td height="26" align="center" valign="middle" bgcolor="#FFFFFF">${obj.vehicleno }</td>
            <td height="26" align="center" valign="middle" bgcolor="#FFFFFF">${obj.licensePlateNo }</td>
            <td height="26" align="center" valign="middle" bgcolor="#FFFFFF">${obj.vehicleType }</td>
            <td height="26" align="center" valign="middle" bgcolor="#FFFFFF">${obj.RoadTransportNo }</td>			            
            <td height="26" align="center" valign="middle" bgcolor="#FFFFFF">${obj.vehicleTonnage }</td>
            <td height="26" align="center" valign="middle" bgcolor="#FFFFFF">${obj.start_to }-->${obj.pass_to }-->${destination }&nbsp;&nbsp;&nbsp;</td>
          </tr>
          </s:iterator>
          <tr class="captitle">
            <td height="31" colspan="10" valign="middle" style="padding-left: 20px;font-weight: bold;">
                运输订单
            </td>
            </tr>
        </table></td>
      </tr>
    </table>
          <table width="100%" border="0" cellspacing="0" cellpadding="0"> 
  <tr>
    <td align="center"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td colspan="2"><table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="#e3e3e3">
          <tr class="captit">
            <td width="10%" height="31" align="center" valign="middle">订单号</td>
            <td width="7%" height="31" align="center" valign="middle">原寄地</td>
            <td width="7%" height="31" align="center" valign="middle">目的地</td>
            <td width="9%" height="31" align="center" valign="middle">物品重量(kg)</td>
            <td width="20%" height="31" align="center" valign="middle">订单备注</td>
            <td width="9%" height="31" align="center" valign="middle">寄件日期</td>
            <td width="13%" height="31" align="center" valign="middle">装车时间</td>
            <td width="13%" height="31" align="center" valign="middle">卸车时间</td>
            <td width="12%" height="31" align="center" valign="middle"></td>
          </tr>
          <s:iterator value="selectUnloadOrderList" id="obj">
          <tr height="26" bgcolor="#efefef">
            <td height="26" align="center" valign="middle" bgcolor="#FFFFFF">${obj.orderid }</td>
            <td height="26" align="center" valign="middle" bgcolor="#FFFFFF">${obj.origin }</td>
            <td height="26" align="center" valign="middle" bgcolor="#FFFFFF">${obj.destination }</td>
            <td height="26" align="center" valign="middle" bgcolor="#FFFFFF">${obj.weight }</td>
            <td height="26" align="center" valign="middle" bgcolor="#FFFFFF">${obj.orderremark }</td>
            <td height="26" align="center" valign="middle" bgcolor="#FFFFFF">${obj.senddate }</td>
            <td height="26" align="center" valign="middle" bgcolor="#FFFFFF" >
            	${obj.loadtime}
            </td>
            <td height="26" align="center" valign="middle" bgcolor="#FFFFFF" class="wordblue">
            	<s:if test="#obj.unloadtime != null">
            		${obj.unloadtime }
            	</s:if>
            	<s:else></s:else>
            </td>
            <td height="26" align="center" valign="middle" bgcolor="#FFFFFF">
            	<s:if test="#obj.unloadlabel == 0">
            		<a href="transport/unLoadOrder.action?orderId=${obj.orderid}&transportId=${obj.transportid}">卸车</a>
            	</s:if>
            	<s:else>
            		已卸车，<a href="#" style="color:#3f729d; ">添加派送</a>
            	</s:else>
            </td>
          </tr>
          </s:iterator>
        </table></td>
      </tr>      
    </table></td>
  </tr>
</table>
</td>
        </tr>
      </table>
    </div></td>
  </tr>
</table>
</div>
</td>
</tr>
</table>
<div class="bottom">版权所有：安徽朗坤物联网</div>
</body>
</html>